// C.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "LinkedList.h"
#include "Stack.h"
#include "String.h"
#include "BinaryTree.h"
#include "Recursion.h"

int _tmain(int argc, _TCHAR* argv[])
{
	using namespace std;
	char a;

	//cout << Strcmp("abcd", "abcd") << endl;
	//cout << Strcmp("bcde", "abcd") << endl;
	//cout << Strcmp("abcd", "bcde") << endl;
	//cout << Strcmp("abcde", "abcd") << endl;
	//cout << Strcmp("abcd", "abcde") << endl;

	//cout << Strlen("\0") << endl;
	//cout << Strlen("abcdabsdlksdfg", 40) << endl;

	//UseLinkedList();
	//UseStack();
	//cout << AreAnagrams("aabcdsdfg", "bdcbsfdga");

	//char str[12];
	//cout << StrToInt("-1234") << endl;
	//IntToStr(-1234, str);
	//cout << str << endl;

	//cout << FactorialRec(10) << " " << FactorialIte(10);
	//int arr[6] = { 1, 3, 5, 6, 8, 9 };
	//cout << BinarySearchIte(arr, 0, 4, 2);

	//cout << FibonacciRec(10) << " " << FibonacciIte(10) << endl;
	//PrintFibonacci(10);

	//Permute("abcd");

	//char str[] ="- This, a sample string.";
	//char * tok = Strtok(str, " ,.-");
	//while(tok != NULL)
	//{
	//	cout << tok << endl;
	//	tok = Strtok(NULL, " ,.-");
	//}

	//cout << FastPower(2, 7);

	UseBinaryTree();
	std::getchar();
	return 0;
}

